import $axios from './request'; 
// 登录接口
export function loginApi(data) {
  return $axios({
    url: '/user/login',
    method: 'post',
    data,
  });
}
// 获取用户邮箱接口测试
export function loginEmail(data) {
  return $axios({
    url: '/user/email',
    method: 'post',
    data,
  });
}


// 注册接口
export function logregister(data) {
  return $axios({
    url: '/user/register',
    method: 'post',
    data,
  });
}

// 注销接口
export function logoutApi() {
  return $axios({
    url: '/user/logout',
    method: 'post',
  });
}

//绑定邮箱接口
export function bindEmailApi(data) {
  return $axios({
    url: '/user/bindEmail',
    method: 'post',
    data,
  });
}

export function checkOpenIdApi(data) {
  return $axios({
    url: '/user/checkOpenId',
    method: 'post',
    data,
  });
}
